package fms.msgupcenter.protocols.uplinkack;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午1:38
 * To change this template use File | Settings | File Templates.
 */
// 上行回复协议
@XmlAccessorType(XmlAccessType.FIELD)
public class UplinkAck {

    @XmlAttribute(name="type")
    private String skylinkType;
    @XmlAttribute(name="version")
    private String version;
    @XmlElement(name="head")
    private UplinkAckHead head;       // 头节点

    @XmlElement(name="msg")
    private String msg; // 下行回复的原始报文

    public UplinkAck()
    {
        skylinkType = "UPLINKACK";
        version = "3.0";
    }

    public String getSkylinkType() {
        return skylinkType;
    }

    public void setSkylinkType(String skylinkType) {
        this.skylinkType = skylinkType;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public UplinkAckHead getHead() {
        return head;
    }

    public void setHead(UplinkAckHead head) {
        this.head = head;
    }

    public String getMsg() {
        return msg;
    }


    public void setMsg(String msg) {
        this.msg = msg;
    }
}
